import com.ynny.bean.CourseManage;
import com.ynny.bean.ScoreManage;
import com.ynny.bean.UserManage;
import com.ynny.dao.Score;
import com.ynny.dao.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class StudentSystemDB {
    public static void main(String[] args) {
        ApplicationContext context;
        context = new ClassPathXmlApplicationContext("student_systemDB.xml");
        User user = (User)context.getBean("user");
        UserManage userManage = (UserManage)context.getBean("userManage");
        Score score = (Score)context.getBean("score");
        ScoreManage scoreManage = (ScoreManage)context.getBean("scoreManage");
        CourseManage courseManage = (CourseManage)context.getBean("courseManage");

        user.setNumber("201801");
        user.setPassword("123456");
        userManage.login();

    }
}

